<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<style>
	.dropdown-menu>li>a {
		line-height: 15px;
	}
	.col-xs-6{
		padding:2px 5px 2px 5px;
	}
	.col-xs-3{
		padding:2px 5px 2px 5px;
	}
	.col-xs-9{
		padding:2px 5px 2px 5px;
	}
	.col-xs-12{
		padding:2px 5px 2px 5px;
	}
	.file-box{ position:relative;width:340px;margin:20px;}
	.btn2{width:80px; color:#fff;background-color:#3598dc; border:0 none;height:30px; line-height:30px!important;cursor:pointer;}
	.btn2:hover{background-color:#63bfff;color:#fff;}
	.txt{ height:28px;line-height:28px; border:1px solid #cdcdcd; width:180px;}
	.file{ position:absolute; top:0; right:85px; height:30px;line-height:30px; filter:alpha(opacity:0);opacity: 0;width:254px }
</style>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
	<div class="row">
		<div class="col-sm-12">
			<div class="ibox float-e-margins">
				<div class="ibox-content" style="padding:0;margin-top:0px;">
					<form class="form-horizontal m-t" id="signupForm"  method="post">
						<input   th:value="${shop.id}"  name="id"  type="hidden">
						<div class='container-fluid' style="margin-top:-10px">
							<div class='row'>
								<div class='col-xs-6'>
									<div class='col-xs-3' style="text-align:right">
										<label class=" control-label" style="line-height:32px;height:32px">商户名称：</label>
									</div>
									<div class='col-xs-9' style="text-align:left">
										<input   th:value="${shop.name}"  name="name" id="name" class="form-control" type="text" placeholder="请输入商户名称">
									</div>
								</div>
								<div class='col-xs-6'>
									<div class='col-xs-3' style="text-align:right">
										<label class=" control-label" style="line-height:32px;height:32px">用户名称：</label>
									</div>
									<div class='col-xs-9' style="text-align:left">
										<input disabled  th:value="${shop.userName}"    class="form-control" type="text" placeholder="请输入商户名称">
									</div>
								</div>
							</div>
							<div class='row'>
								<div class='col-xs-6'>
									<div class='col-xs-3' style="text-align:right">
										<label class=" control-label" style="line-height:32px;height:32px">所属小区：</label>
									</div>
									<div class='col-xs-6' style="text-align:left;padding-right:0">
										<input id="communityId" name="cId"  th:value="${shop.communityId}"   class="form-control" type="hidden" >
										<input id="communityName"  name="cName" disabled  th:value="${shop.cName}"   class="form-control" type="text" placeholder="请选择小区">
									</div>
									<div class='col-xs-3' style="text-align:left;padding-left:0">
										<a class="btn btn-success" style="width:75px" onclick="chooseCommunity()">选择</a>
									</div>
								</div>
								<div class='col-xs-6'>
									<div class='col-xs-3' style="text-align:right">
										<label class=" control-label" style="line-height:32px;height:32px">所在地址：</label>
									</div>
									<div class='col-xs-9' style="text-align:left">
										<input  th:value="${shop.addr}" name="addr" id="addr" maxlength="200"  class="form-control" type="text" placeholder="请输入商户地址">
									</div>
								</div>
							</div>
							<div class='row'>
								<div class='col-xs-6'>
									<div class='col-xs-3' style="text-align:right">
										<label class=" control-label" style="line-height:32px;height:32px">商户类别：</label>
									</div>
									<div class='col-xs-9' style="text-align:left">
										<!--<input  th:value="${shop.iName}"  maxlength="200"  class="form-control" type="text" placeholder="请输入商户地址">-->
										<select  id="industry_slt"  name="iId" class="selectpicker show-tick form-control" style="height:200px">
											<option th:each="c:${industryList}" th: if="${c.id} == ${shop.industryId}" th:value="${c.id}" th:text="${c.name}"></option>
										</select>
									</div>
								</div>
								<div class='col-xs-6'>
									<div class='col-xs-3' style="text-align:right">
										<label class=" control-label" style="line-height:32px;height:32px">联系电话：</label>
									</div>
									<div class='col-xs-9' style="text-align:left">
										<input  th:value="${shop.mobile}" name="mobile" id="mobile"  maxlength="200"  class="form-control" type="text" placeholder="请输入商户地址">
									</div>
								</div>
							</div>
							<div class='row'>
								<div class='col-xs-6'>
									<div class='col-xs-3' style="text-align:right">
										<label class=" control-label" style="line-height:32px;height:32px">注册时间：</label>
									</div>
									<div class='col-xs-9' style="text-align:left" >
										<input disabled  th:value="${#dates.format(shop.createTime, 'yyyy/MM/dd HH:mm:ss')}"  maxlength="30"  class="form-control" type="text" placeholder="请输入商户地址">
									</div>
								</div>
								<div class='col-xs-6'>
									<div class='col-xs-3' style="text-align:right">
										<label class=" control-label" style="line-height:32px;height:32px">审核状态：</label>
									</div>
									<div th:if="${shop.auditStatus} == '0'" class='col-xs-9' style="text-align:left;color:black" title="未审核">
										<img src="/img/m/wsh.jpg" height="30" width="65" style="margin-top:0px"/>
									</div>
									<div th:if="${shop.auditStatus} == '1'" class='col-xs-9' style="text-align:left;color:green" title="审核通过">
										<img src="/img/m/shtg.png" height="30" width="65" style="margin-top:0px"/>
									</div>
									<div th:if="${shop.auditStatus} == '2'" class='col-xs-9' style="text-align:left;color:red" title="审核拒绝">
										<img src="/img/m/shwtg.jpg" height="30" width="65" style="margin-top:0px"/>
									</div>
								</div>
							</div>
							<div class='row'>
								<div class='col-xs-6'>
									<div class='col-xs-3' style="text-align:right">
										<label class=" control-label" style="line-height:32px;height:32px">上传执照：</label>
									</div>
									<div class='col-xs-9' style="text-align:left">
										<input type="hidden" id="licenseUrl" th:value="${shop.licensePhotoPath}"/>
										<!--<form action="/fileUpload" method="post" enctype="multipart/form-data">
											<input type="file" name="file"/>
											<input type="submit" value="上传" class="btn btn-primary"/>
										</form>
										<input id="licensePic" type="hidden" th:value="${licUrl.split('/')[3]}"/>
										<input type="text" id="textfield" th:value="${licUrl.split('/')[3]}" style="" disabled class="form-control" />
										-->
										<input id="licensePic" type="hidden" th:value="${licenseName}"/>
										<input type="text" id="textfield" th:value="${licenseName}" style="" disabled class="form-control" />
										<input class="btn2" type="button" onclick="view()" value="本地上传执照" style="margin-top:5px;width:230px">
										<input class="btn2" id="delImgInput" type="button" onclick="cancel()" style="margin-top:5px;background:red;display:none;width:230px" value="✘删除" />
										<input type="file" name="file" class="file"  id="fileInput" onchange="checkFileName(this)"/>
									</div>
								</div>
								<div class='col-xs-6'>
									<div class='col-xs-12' style="padding-left:10px">
										<a href="javascript:;" onclick="showBig()">
											<img id="preViewImgId" title="点击查看大图" th:src="${shop.licensePhotoPath}" height="150" width="100%" style="border: 1px #ccc solid"/>
										</a>
									</div>
								</div>

							</div>
							<div class='row'>
								<div class='col-xs-12'>
									<div class='col-xs-12' >
										<button style="width:100%;margin-bottom:5px"  type="button" id="auditBtn" onclick="edit()" class="btn btn-primary">提交</button>
									</div>
								</div>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
	<img id="showlicenseImg" src="" alt="license" style="display:none">
	<div th:include="include::footer"></div>
	<script type="text/javascript" src="/js/appjs/shop/edit.js">
	</script>
</body>
</html>
